/**
 * 
 */
package Util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * 验证生日
 * @author zhaoyana
 *
 */
public class BirthUtils {
	public static boolean isBirthNo(String birth) {
		Pattern p = Pattern.compile("^([a-z0-9A-Z]+[-|\\.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-zA-Z]{2,}$");

		Matcher m = p.matcher(birth);
		System.out.println("该生日是否正确："+m.matches());
		return m.matches();
	

		}
}
